//
//  ZMYReadViewController.h
//  奇阅
//
//  Created by 奇阅科技 on 14-10-15.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZMYAnimator.h"
#import "Config.h"
#import "UMSocial.h"

@interface ZMYReadViewController : UIViewController<UIViewControllerTransitioningDelegate,UMSocialUIDelegate,UIPageViewControllerDelegate>
@property (weak, nonatomic) IBOutlet UIView *groundView;
@property (weak, nonatomic) IBOutlet UIView *smallBottomView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *smallBottomViewBottomConstraint;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIView *bigBottomView;
@property (weak, nonatomic) IBOutlet UIButton *chapterCacheButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bigBottomViewBottomConstraint;
@property (nonatomic,retain)UIImage *image;
@property (weak, nonatomic) IBOutlet UISlider *progressSlider;
@property (weak, nonatomic) IBOutlet UISlider *lightSlider;
@property (weak, nonatomic) IBOutlet UIView *autoScrollBottomView;
@property (weak, nonatomic) IBOutlet UISlider *scrollSpeedSlider;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *autoScrollViewBottomConstraint;
@property (weak, nonatomic) IBOutlet UIButton *linghtButton;//夜间模式按钮
@property (nonatomic,retain)ZMYAnimator *animator;
@property (nonatomic,strong)Book *book;

@property (strong, nonatomic) UIPageViewController *pageViewController;

@property (nonatomic, strong) BookChapterInfo *currentChapterInfo;
@property (nonatomic, strong) BookChapterInfo *nextChapterInfo;
@property (nonatomic, strong) BookChapterInfo *beforeChapterInfo;

///更新书签按钮图标
-(void)updateBookmarkImage:(NSString *)rangStr;
///切换到当前阅读进度
-(void)changeToReadSchedule;
///改变pages滑块的位置
-(void)changePageSlile;
@end
